#!/bin/bash
url=https://github.com/ventoy/Ventoy/releases/download/v1.0.94/ventoy-1.0.94-linux.tar.gz
file_name=${url##*/}
simple_file_name=${file_name%%.*}
if [[ ! -d ${HOME}/temp/download ]]
then
  mkdir -p ${HOME}/temp/download
fi
if [[ ! -d ${HOME}/zxh/tools ]]
then
  mkdir -p ${HOME}/zxh/tools
fi
wget -P ${HOME}/temp/download url
tar -zxvf ${HOME}/temp/download/${file_name} -C ${HOME}/zxh/tools/${simple_file_name}
# https://www.ventoy.net/cn/doc_start.html
